#include "Sprite.h"

Sprite::Sprite(float SpriteX, float SpriteY, int width, int height, SDL_Surface *image)
{
	x = SpriteX;
	y = SpriteY;
	w = width;
	h = height;
	dx = 0;
	dy = 0;

	sprite = image;

	CollBox = SDL_Rect();
	CollBox.x = x;
	CollBox.y = y;
	CollBox.w = w;
	CollBox.h = h;
}

float Sprite::CenterX()
{
	return x + (w/2);
}

float Sprite::CenterY()
{
	return y + (h/2);
}
